require "import"
import "android.content.*"
import "android.os.Vibrator"
v=function()
local context = activity or service
local vibrator = context.getSystemService(Context.VIBRATOR_SERVICE)
if vibrator.hasVibrator() then
vibrator.vibrate(30)
end
return true
end

if service.click({ 
{"Răspunde|Mesaj nou|Answer|Turn on speakerphone|Turn off speakerphone|New message@*",
} 
}) 
return true 
end 

if service.click({{
"Sursă audio, bluetooth|Sursă audio, telefon*$500",
"Difuzor>4",
}})
return true
end

if service.click({{
"Sursă audio, difuzor$500",
"Bluetooth|Telefon>4",
}})
return true
end

if service.click({{
"Înregistrează un mesaj vocal|Trimite$700",
"%v$100",
}})
return true
end

if service.click({
{"<Send",
"%模拟长按",
}
})
return true
end

if service.click({
{"Audio source, *|Change audio*|Turn Speaker on|Turn Speaker off$500",
"Speaker|Phone",
}
})
return true
end

if service.click({
{"<Record voice message*",
"%模拟长按",
"%[向上]",
}
})
return true
end

if service.click({
{"<Send",
"%模拟长按",
}
})
return true
end


return true